import { createRouter, createWebHistory } from 'vue-router'
import RootView from '@/views/rootView.vue'
import base from '@/views/base.vue'
import team1 from '@/views/page1.vue'
import team2 from '@/views/page2.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: RootView,
      redirect: '/base',
      children: [
        {
          path: 'base',
          component: base
        },
        {
          path: "team1/:subpath(.*)*",
          component: team1
        },
        {
          path: "team2/:subpath(.*)*",
          component: team2
        }
     ]
    }
  ],
})

export default router
